﻿@model TracNghiem.Areas.Admin.Models.PhanLoaiModel
<div class="container_12">
    <div class="grid_12">
        <div class="module">
            <h2 align="right">
                <span><a href="@Url.Action("Index", "PhanLoai", new { id=@ViewBag.dichvu_id})">Quay lại</a></span></h2>
            <div class="module-body">
                @using (Html.BeginForm("AddPhanLoai", "PhanLoai", FormMethod.Post, new { id = "PhanLoai" }))
                {             
                    <input type="hidden" name="dichvu_id" value="@ViewBag.dichvu_id" />     
                    <div align="center">
                        <h3>
                            THÊM MỚI PHÂN LOẠI DỊCH VỤ</h3>
                        @*<div class="account" align="center"> 
                            <img src="@Url.Content("~/Content/themes/template/image//Body_Images/Add_User.png")" width="12%" />
                        </div>*@
                    </div>
                    if (TempData["msg"] != null)
                    {                            
                    <span class="notification n-error">@TempData["msg"]</span>
                    }  
                    <p>
                    </p>
                    <table>
                        <p>
                            <label style="padding-left: 30%;">
                                Dịch vụ: <b>@ViewBag.ten_dich_vu</b></label>
                            @*<div style="padding-left: 28%;">
                                @if (Model.service_id != null)
                                {                               
                                    @Html.DropDownListFor(x => x.dichvu_id, Model.service_id, new { style = "margin-left:17px" })  
                                }
                            </div>*@
                        </p>
                        <p>
                            <label style="padding-left: 30%;">
                                Tên phân loại:</label>
                            <div style="padding-left: 30%;">
                                @*@Html.TextBoxFor(model => model.name, new { @name = "name", @class = "input-medium" }) *@
                                @Html.TextBoxFor(model => model.name)
                                <font color="red">(*)</font>
                                <label style="width: 56%; text-align: left; color: red">
                                    @Html.ValidationMessageFor(model => model.name)
                                </label>
                            </div>
                        </p>
                    </table>
                    <div class="button" style="padding-left: 30%;">
                        <p style="width: 25%; text-align: center">
                            <input class="submit-green" type="submit" value="Thêm" />
                            <input class="submit-gray" type="reset" value="Hủy" />
                        </p>
                    </div>
                }
            </div>
            <!-- End .module-body -->
        </div>
        <!-- End .module -->
        <div style="clear: both;">
        </div>
    </div>
    <!-- End .grid_12 -->
    <div style="clear: both;">
    </div>
</div>
<!-- End .container_12 -->
